<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>贵美商城</title>
 <link rel="stylesheet"	type="text/css"	href="css/global.css"	/>
 <link rel="stylesheet"	type="text/css"	href="css/layout.css"	/>
</head>
<body>
<div id="container">
	<iframe id="header" runat="server" src="header.jsp" width="980" height="136" frameborder="0" scrolling="no"></iframe>
	<div class="catlist a_c">
	
		<div>
		<table border="2" align="center">
			<tr>
				<td>商品名称/联系人</td>
				<td>商品描述(描述)</td>
				<td>商品价格(一口价：)</td>
				<td>商品库存(库存量：)</td>
				<td>查看详情(点击这里)</td>
			</tr>
			<c:forEach var="prolist" items="${prolist }">
				<tr>
					<td>${prolist.epName }</td>
					<td>${prolist.epDescription }</td>
					<td>${prolist.epPrice }</td>
					<td>${prolist.epStock }</td>
					<td><a href="productAction!selectProduct?product.epId=${prolist.epId }">查看详情</a></td>
				</tr>
			</c:forEach>		
		</table>
		
		<table align="center">
			<tr>
				<td>当前页${mypage }/</td>
   				<td>共${pageSum }页</td>
	    		<td><a href="productAction!selectProductByTypePage?productCategory.epcId=1&pageIndex=${mypage-1 }">上一页</a></td>
	    		<td><a href="productAction!selectProductByTypePage?productCategory.epcId=1&pageIndex=${mypage+1 }">下一页</a></td>
			</tr>
		</table>	
		</div>
		${msg }
	</div>
	<iframe id="footer" runat="server" src="footer.html" width="980" height="136" frameborder="0" scrolling="no"></iframe>
</div> <!--container end-->	
</body>
</html>
